/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class IndustrialCombustibleGasDetector {
    static categoryCode = '030020001';

    static categoryName = '工业可燃气体探测器';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return IndustrialCombustibleGasDetector.categoryCode;
    }

    get categoryName() {
        return IndustrialCombustibleGasDetector.categoryName;
    }

    getAlarmDuration(params) {
        return command({
            method: 'getAlarmDuration',
            methodId: 'pMnas9jn',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getAlarmRingtone(params) {
        return command({
            method: 'getAlarmRingtone',
            methodId: 'pkFk6IDE',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getAlarmStatus(params) {
        return command({
            method: 'getAlarmStatus',
            methodId: 'pdcpaW7z',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getAlarmSwitch(params) {
        return command({
            method: 'getAlarmSwitch',
            methodId: 'pz5j0ET9',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getAlarmVolume(params) {
        return command({
            method: 'getAlarmVolume',
            methodId: 'p33IhzeI',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCOAlarmThreshold(params) {
        return command({
            method: 'getCOAlarmThreshold',
            methodId: 'pgtWxJzo',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCOValue(params) {
        return command({
            method: 'getCOValue',
            methodId: 'pDVMkTK1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getGasAlarmThreshold(params) {
        return command({
            method: 'getGasAlarmThreshold',
            methodId: 'pt9fZROW',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getGasValue(params) {
        return command({
            method: 'getGasValue',
            methodId: 'phpvV2qR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setAlarmDuration(params) {
        return command({
            method: 'setAlarmDuration',
            methodId: 'p18tRNUk',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setAlarmRingtone(params) {
        return command({
            method: 'setAlarmRingtone',
            methodId: 'pZhoQH8b',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setAlarmSwitch(params) {
        return command({
            method: 'setAlarmSwitch',
            methodId: 'pGEigvLq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setAlarmVolume(params) {
        return command({
            method: 'setAlarmVolume',
            methodId: 'pUr9pi4x',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setCOAlarmThreshold(params) {
        return command({
            method: 'setCOAlarmThreshold',
            methodId: 'pe2jfrt3',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setGasAlarmThreshold(params) {
        return command({
            method: 'setGasAlarmThreshold',
            methodId: 'ppvmXdBG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default IndustrialCombustibleGasDetector;
